]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Revert "lookingGlass: Show extension state in gnome-shell"
authorJasper St. Pierre <jstpierre@mecheye.net>
Sun, 2 Oct 2011 16:04:30 +0000 (12:04 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sun, 2 Oct 2011 16:05:21 +0000 (12:05 -0400)
This reverts commit 32dc24c59b81da23befdb0876465f588168fd382, as it caused
a string break.

https://bugzilla.gnome.org/show_bug.cgi?id=660494

data/theme/gnome-shell.css
js/ui/lookingGlass.js

index 9072212fe58f2b50ad807f3dc1c5f3311b1d44c3..ca39e4906a9fd9d570268ca403826e5fa3373e07 100644 (file)
@@ -907,7 +907,7 @@ StTooltip StLabel {
     font-weight: bold;
 }
 
-.lg-extension-meta {
+.lg-extension-actions {
     spacing: 6px;
 }
 
index 9a57c1ecdfce3d2519c79f3591e4271c72dfa465..ac51a4dcfbb36b73da392d52083be848d77204d2 100644 (file)
@@ -738,23 +738,27 @@ Extensions.prototype = {
                                          text: meta.description || 'No description' });
         box.add(description, { expand: true });
 
-        let metaBox = new St.BoxLayout({ style_class: 'lg-extension-meta' });
+        let metaBox = new St.BoxLayout();
         box.add(metaBox);
         let stateString = this._stateToString(meta.state);
         let state = new St.Label({ style_class: 'lg-extension-state',
                                    text: this._stateToString(meta.state) });
-        metaBox.add(state);
+
+        let actionsContainer = new St.Bin({ x_align: St.Align.END });
+        metaBox.add(actionsContainer);
+        let actionsBox = new St.BoxLayout({ style_class: 'lg-extension-actions' });
+        actionsContainer.set_child(actionsBox);
 
         let viewsource = new Link.Link({ label: _("View Source") });
         viewsource.actor._extensionMeta = meta;
         viewsource.actor.connect('clicked', Lang.bind(this, this._onViewSource));
-        metaBox.add(viewsource.actor);
+        actionsBox.add(viewsource.actor);
 
         if (meta.url) {
             let webpage = new Link.Link({ label: _("Web Page") });
             webpage.actor._extensionMeta = meta;
             webpage.actor.connect('clicked', Lang.bind(this, this._onWebPage));
-            metaBox.add(webpage.actor);
+            actionsBox.add(webpage.actor);
         }
 
         let viewerrors = new Link.Link({ label: _("Show Errors") });